import sys

lines = sys.stdin.readlines()

lines.sort()

for line in lines:
    print(line, end='')
